home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / orbitballs10-blank.swf / scripts / DefineButton2_177 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2008-09-02  |  814 b   |  24 lines

  1. on(release){
  2.    code1 = ["F","1","A","6","8","4","E","C","3","7"];
  3.    code2 = ["B","D","8","4","5","9","3","6","1","0"];
  4.    equa1 = (_root.scorepts.scorepts + 10) * 11;
  5.    equa2 = (_root.scorepts.scorepts + 11) * 11;
  6.    score_string1 = equa1.toString();
  7.    score_string2 = equa2.toString();
  8.    while(score_string1.length < score_string2.length)
  9.    {
  10.       score_string1 = "0" + score_string1;
  11.    }
  12.    i = 0;
  13.    codage = "";
  14.    while(i < score_string2.length)
  15.    {
  16.       pos_string1 = Number(score_string1.charAt(i));
  17.       pos_string2 = Number(score_string2.charAt(i));
  18.       codage = codage + code1[pos_string1] + code2[pos_string2];
  19.       i++;
  20.    }
  21.    desturl = "http://www.high-scores.eu/index.php?page=10&game=14&lang=" + _root.lang + "&result=" + codage;
  22.    getURL(desturl,"_blank");
  23. }
  24.